# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

from scrapy import Item, Field

'''
爬虫的数据字段
'''


class MansiteItem(Item):
    # define the fields for your item here like:
    # name = scrapy.Field()

    # primary item
    title = Field()
    desc = Field()
    duration = Field()
    pubDate = Field()
    type = Field()
    image = Field()
    detailUrl = Field()

    # assist field 帮助字段
    url = Field()
    timestamp = Field()
    project = Field()
    server = Field()

    pass


'''
演员表
'''


class AverItem(Item):
    # primary field
    starName = Field()
    avatar = Field()
    intro = Field()

    # 当前爬取的路径
    spiderUrl = Field()
    # 爬取时间戳
    timestamp = Field()
    # 爬虫名称
    spiderName = Field()
    # 当前爬虫所在项目名称
    spiderProject = Field()
    # 当前执行爬虫的机器IP
    hostname = Field()

    pass
